//
//  MyInterestVC.m
//  ZITHER
//
//  Created by weixin on 2018/10/16.
//  Copyright © 2018年 weixn. All rights reserved.
//

#import "MyInterestVC.h"

@interface MyInterestVC ()



@end

@implementation MyInterestVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setNav];
    
    [self setUI];
}

-(void)setNav{
    [self.baseNavigationView setHiddenNav:NO VC:self];

    /* TODO: ================= 导航栏V4样式 =================*/
    [self.baseNavigationView NavigationBarStyle:2];
    self.baseNavigationView.leftButton1.hidden = YES;
    self.baseNavigationView.isShowShadow = YES;
    
    
    /* TODO: ================= 导航栏关注 =================*/

    @weakify(self);
    [[self.baseNavigationView.NavViewStyleMyInterest.leftTitleBtn rac_signalForControlEvents:(UIControlEventTouchUpInside)] subscribeNext:^(__kindof UIControl * _Nullable x) {
        @strongify(self);
        [UIView animateWithDuration:0.3 animations:^{
//            self.viewBlcak.frame =  CGRectMake(0, 37+44+kStatusBarHeight, kScreenW/2.0, 6);
            self.scroView.contentOffset = CGPointMake(0, 0);
        }];
    }];
    [[self.baseNavigationView.NavViewStyleMyInterest.rightTitleBtn rac_signalForControlEvents:(UIControlEventTouchUpInside)] subscribeNext:^(__kindof UIControl * _Nullable x) {
        @strongify(self);
        [UIView animateWithDuration:0.3 animations:^{
            self.scroView.contentOffset = CGPointMake(kScreenW, 0);
            
        }];
    }];

}


-(void)setUI{
    
//    [self.view addSubview:self.btn1];
//    [self.view addSubview:self.btn2];
//    [self.view addSubview:self.viewBlcak];
    [self.view addSubview:self.scroView];

}

- (MeInterestScr *)scroView{
    if (!_scroView) {
        _scroView = [[MeInterestScr alloc]initWithFrame:CGRectMake(0, NaviHeight, kScreenW,kScreenH-NaviHeight)];
    }
    return  _scroView;
}

@end
